const http = uni.$u.http

//新上好课列表
export const mostNew = (data) => http.post('/course/mostNew', data)

//推荐好课列表
export const mostHeat = (data) => http.post('/course/mostHeat', data)

//大家都在看列表
export const searchCourse = (data) => http.post('/course/search', data)

//免费课程列表
export const freeCourse = (data) => http.post('/course/search', data)
//实战课程列表
export const actualCourse = (data) => http.post('/course/search', data)

//课程分类一级类目
export const getFirstCategorys = (data) => http.get('/course/category/getFirstCategorys', {
	params: data
})

//课程分类二级类目
export const getSecondCategorys = (data) => http.get('/course/category/getSecondCategorys', {
	params: data
})